﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Magic.Web.Entry;

/// <summary>
/// magic基础控制器
/// </summary>
[ApiController]
[Route("[controller]")]
[ApiExplorerSettings(GroupName = "system")]
[Authorize("magic")]//不同基类走不同策略
public class BaseController : ControllerBase
{
    
}

/// <summary>
/// magic基础控制器
/// </summary>
[ApiController]
[Route("[controller]")]
[ApiExplorerSettings(GroupName = "student")]
[Authorize("magicTest")]//不同基类走不同策略
public class BaseTestController : ControllerBase
{

}

